export class OPSConstant {
    /**
     * 发布单普通应用
     * @type {string}
     */
    static OPS_TYPE_APP = "app";
    /**
     * 发布单 基座应用，打包基座就要指定模块插件
     * @type {string}
     */
    static OPS_TYPE_JZ = "jz";
    /**
     * 发布单 基座应用，打包基座就要指定模块插件
     * @type {string}
     */
    static OPS_TYPE_PLUGIN = "plugin";

    /**
     * 依赖
     * @type {string}
     */
    static OPS_TYPE_SUPPORT = "support";

    /**
     * 默认 NB 运维飞书群聊
     * @type {string}
     */
    static OPS_DEFAULT_CHAT_ID = "oc_8e46f2cdf24aa7cf3d91e54ba391aa33";

    /**
     * 默认 nb 社区
     * @type {string}
     */
    static OPS_CHAT_ID = "oc_29d446dab43027ebc3af747620d3f729";

    static TYPE_ALIAS_MAP = {
        'app': "应用",
        'jz': "基座",
        'plugin': "插件",
        'support': "依赖"
    }

    /**
     * nb clone 中文别名映射
     * @type {Object<string, string[]>}
     */
    static NB_CLONE_ALIAS_MAP = {
        '主站-出入金': [
            'git@gitlab.inzwc.com:hst/crm.team/hs-bss-service/hs-bss-admin-service.git',
            'git@gitlab.inzwc.com:hst/crm.team/hs-crm/hs-crm-admin.git',
            'git@gitlab.inzwc.com:hst/crm.team/hs-crm/hs-crm-ext-service.git',
            'git@gitlab.inzwc.com:hst/crm.team/hs-crm/hs-crm-money-service.git',
            'git@gitlab.inzwc.com:hst/crm.team/hs-crm/hs-crm-money-task.git',
            'git@gitlab.inzwc.com:hst/crm.team/hs-crm/hs-crm-proccess-admin.git',
            'git@gitlab.inzwc.com:hst/crm.team/hs-crm/hs-crm-proccess-service.git',
            'git@gitlab.inzwc.com:hst/crm.team/hs-crm/hs-crm-service.git',
            'git@gitlab.inzwc.com:hst/crm.team/hs-crm/hs-crm-task.git',
            'git@gitlab.inzwc.com:hst/fe.team/hst-h5/hs-h5-financing.git',
            'git@gitlab.inzwc.com:hst/crm.team/hs-transfer-parent.git',
            'git@gitlab.inzwc.com:hst/crm.team/hs-web-api/hs-web-api.git',
        ],
        '主站-ipo': [
            'git@gitlab.inzwc.com:hst/crm.team/hs-bss-service/hs-bss-admin-service.git',
            'git@gitlab.inzwc.com:hst/crm.team/hs-ipo/hs-ipo-admin.git',
            'git@gitlab.inzwc.com:hst/crm.team/hs-ipo/hs-ipo-interface.git',
            'git@gitlab.inzwc.com:hst/crm.team/hs-ipo-parent.git',
            'git@gitlab.inzwc.com:hst/crm.team/hs-ipo/hs-ipo-service.git',
            'git@gitlab.inzwc.com:hst/crm.team/hs-ipo/hs-ipo-task.git',
            'git@gitlab.inzwc.com:hst/crm.team/hs-web-api/hs-ipo-web-api.git',
            'git@gitlab.inzwc.com:hst/trade.team/hs-misc-service.git',
            'git@gitlab.inzwc.com:hst/crm.team/hs-report/hs-report-admin.git',
            'git@gitlab.inzwc.com:hst/crm.team/hs-web-api/hs-web-api.git',
        ],
        '主站-IPO': [
            'git@gitlab.inzwc.com:hst/crm.team/hs-bss-service/hs-bss-admin-service.git',
            'git@gitlab.inzwc.com:hst/crm.team/hs-ipo/hs-ipo-admin.git',
            'git@gitlab.inzwc.com:hst/crm.team/hs-ipo/hs-ipo-interface.git',
            'git@gitlab.inzwc.com:hst/crm.team/hs-ipo-parent.git',
            'git@gitlab.inzwc.com:hst/crm.team/hs-ipo/hs-ipo-service.git',
            'git@gitlab.inzwc.com:hst/crm.team/hs-ipo/hs-ipo-task.git',
            'git@gitlab.inzwc.com:hst/crm.team/hs-web-api/hs-ipo-web-api.git',
            'git@gitlab.inzwc.com:hst/trade.team/hs-misc-service.git',
            'git@gitlab.inzwc.com:hst/crm.team/hs-report/hs-report-admin.git',
            'git@gitlab.inzwc.com:hst/crm.team/hs-web-api/hs-web-api.git',
        ],
        '主站-开户': [
            'git@gitlab.inzwc.com:hst/crm.team/hs-bss-service/hs-bss-admin-service.git',
            'git@gitlab.inzwc.com:hst/crm.team/hs-kh/hs-kh-service.git',
            'git@gitlab.inzwc.com:hst/crm.team/hs-kh/hs-kh-admin.git',
            'git@gitlab.inzwc.com:hst/crm.team/hs-crm/hs-crm-ext-task.git',
            'git@gitlab.inzwc.com:hst/crm.team/hs-crm/hs-crm-ext-service.git',
            'git@gitlab.inzwc.com:hst/crm.team/hs-crm/hs-crm-service.git',
            'git@gitlab.inzwc.com:hst/crm.team/hs-crm/hs-crm-task.git',
            'git@gitlab.inzwc.com:hst/crm.team/hs-aml-parent.git',
            'git@gitlab.inzwc.com:hst/crm.team/hs-kh/hs-h5-kh.git',
            'git@gitlab.inzwc.com:hst/crm.team/hs-web-api/hs-web-api.git'
        ],
        '主站-基础': [
            'git@gitlab.inzwc.com:hst/trade.team/hs-core-service.git',
            'git@gitlab.inzwc.com:hst/uog.team/hst-admin/hs-admin-platform-service.git',
            'git@gitlab.inzwc.com:hst/ptg.team/hs-config-center/hs-app-config/hs-app-config-service.git',
            'git@gitlab.inzwc.com:hst/trade.team/hs-task.git',
            'git@gitlab.inzwc.com:hst/ptg.team/hs-userinfo/hs-userinfo-service.git'
        ],
        '基金': [
            'git@gitlab.inzwc.com:hst/trade.team/hs-fund/hs-fund-admin.git',
            'git@gitlab.inzwc.com:hst/trade.team/hs-fund/hs-fund-gaoteng-sdk.git',
            'git@gitlab.inzwc.com:hst/trade.team/hs-fund/hs-fund-interface.git',
            'git@gitlab.inzwc.com:hst/trade.team/hs-fund/hs-fund-service.git',
            'git@gitlab.inzwc.com:hst/trade.team/hs-fund/hs-fund-szt.git',
            'git@gitlab.inzwc.com:hst/trade.team/hs-fund/hs-fund-task.git',
            'git@gitlab.inzwc.com:hst/trade.team/hs-fund/hs-fund-yunfeng-sdk.git',
            'git@gitlab.inzwc.com:hst/trade.team/hs-fund/hs-h5-fund.git',
            'git@gitlab.inzwc.com:hst/trade.team/hs-fund-ows/hs-fund-ows-admin.git'
        ],

        '债券': [
            'git@gitlab.inzwc.com:hst/fe.team/hst-h5-vue/hs-h5-vue-bound.git',
            'git@gitlab.inzwc.com:hst/ptg.team/hs-bond/hs-bond-yield.git',
            'git@gitlab.inzwc.com:hst/ptg.team/hs-bond/hs-bond-task.git',
            'git@gitlab.inzwc.com:hst/ptg.team/hs-bond/hs-bond-service.git',
            'git@gitlab.inzwc.com:hst/ptg.team/hs-bond-pro.git',
            'git@gitlab.inzwc.com:hst/ptg.team/hs-bond/hs-bond-interface.git',
            'git@gitlab.inzwc.com:hst/ptg.team/hs-bond/hs-bond-admin.git'
        ],

        'pro': [
            'git@gitlab.inzwc.com:hst/fintools.team/oms/oms-gateway.git',
            'git@gitlab.inzwc.com:hst/fintools.team/oms/oms-interface.git',
            'git@gitlab.inzwc.com:hst/fintools.team/oms/oms-manager.git',
            'git@gitlab.inzwc.com:hst/fintools.team/oms/oms-risk-manager.git',
            'git@gitlab.inzwc.com:hst/fintools.team/oms/oms-service.git'
        ],

        'pro模拟盘': [
            'git@gitlab.inzwc.com:hst/fintools.team/oms/oms-simulation-gateway.git',
            'git@gitlab.inzwc.com:hst/fintools.team/oms/oms-simulation-interface.git',
            'git@gitlab.inzwc.com:hst/fintools.team/oms/oms-simulation-manager.git',
            'git@gitlab.inzwc.com:hst/fintools.team/oms/oms-simulation-service.git'
        ],

        'Fcn': [
            'git@gitlab.inzwc.com:hst/ptg.team/hs-sn/hs-sn-service.git',
            'git@gitlab.inzwc.com:hst/ptg.team/hs-sn/hs-sn-admin.git'
        ],
        'FCN': [
            'git@gitlab.inzwc.com:hst/ptg.team/hs-sn/hs-sn-service.git',
            'git@gitlab.inzwc.com:hst/ptg.team/hs-sn/hs-sn-admin.git'
        ],
        'fcn': [
            'git@gitlab.inzwc.com:hst/ptg.team/hs-sn/hs-sn-service.git',
            'git@gitlab.inzwc.com:hst/ptg.team/hs-sn/hs-sn-admin.git'
        ],
        '智能盯盘': [
            'git@gitlab.inzwc.com:hst/fintools.team/flink/stream-cep-scheduler.git',
            'git@gitlab.inzwc.com:hst/fintools.team/flink/stream-cep-transmit.git'
        ],
        '主站-VIP': [
            'git@gitlab.inzwc.com:hst/ptg.team/hs-vip/hs-vip-admin.git',
            'git@gitlab.inzwc.com:hst/ptg.team/hs-vip/hs-vip-h5.git',
            'git@gitlab.inzwc.com:hst/ptg.team/hs-vip/hs-vip-interface.git',
            'git@gitlab.inzwc.com:hst/ptg.team/hs-vip/hs-viplevel-service.git',
            'git@gitlab.inzwc.com:hst/ptg.team/hs-vip/hs-vip-service.git'
        ],
        '主站-vip': [
            'git@gitlab.inzwc.com:hst/ptg.team/hs-vip/hs-vip-admin.git',
            'git@gitlab.inzwc.com:hst/ptg.team/hs-vip/hs-vip-h5.git',
            'git@gitlab.inzwc.com:hst/ptg.team/hs-vip/hs-vip-interface.git',
            'git@gitlab.inzwc.com:hst/ptg.team/hs-vip/hs-viplevel-service.git',
            'git@gitlab.inzwc.com:hst/ptg.team/hs-vip/hs-vip-service.git'
        ],
        '马来-出入金': [
            'git@gitlab.inzwc.com:hst-intl/hst-mpg-team/hs-finance-money/hs-intl-finance-money-server.git',
            'git@gitlab.inzwc.com:hst-intl/hst-mpg-team/hs-finance-money/hs-intl-finance-money-admin.git',
            'git@gitlab.inzwc.com:hst-intl/hst-mpg-team/hs-finance-money/hs-intl-finance-money-task.git',
            'git@gitlab.inzwc.com:hst-intl/hst-mpg-team/hs-finance/hs-intl-finance-server.git',
            'git@gitlab.inzwc.com:hst-intl/hst-mpg-team/hs-finance/hs-intl-finance-interface.git',
            'git@gitlab.inzwc.com:hst-intl/hst-mpg-team/hs-finance/hs-intl-finance-web-api.git',
            'git@gitlab.inzwc.com:hst-intl/hst-mpg-team/hs-bss/hs-intl-bss-admin-server.git'
        ],
        '主站-自选': [
            'git@gitlab.inzwc.com:hst/ptg.team/hs-userinfo/hs-userinfo-service.git',
            'git@gitlab.inzwc.com:hst/trade.team/hs-task.git',
            'git@gitlab.inzwc.com:hst/trade.team/hs-socket-interface.git',
            'git@gitlab.inzwc.com:hst/trade.team/hs-interface.git'
        ],
    };

    /**
     * 稳定环境构建组长白名单账号（全部小写）
     * @type {string[]}
     */
    static ZZ_LEADER_WHITELIST = ['yuding.liao', 'leo.kuang', 'he.wu', 'jack.he', 'kadin.tang'];

    /**
     * EasySearch 相关配置
     */
    static EASY_SEARCH_BASE_URL = 'https://easysearch-hk.hszq8.com';
    static EASY_SEARCH_DATASET_ID = 'd2e638qt7cas3ain8lp0';
    static EASY_SEARCH_LOGIN_URL = `${OPSConstant.EASY_SEARCH_BASE_URL}/account/login`;
    static EASY_SEARCH_SEARCH_URL = `${OPSConstant.EASY_SEARCH_BASE_URL}/elasticsearch/${OPSConstant.EASY_SEARCH_DATASET_ID}/search/ese?timeout=60s`;
    static EASY_SEARCH_TOKEN_REFRESH_GUARD = 60 * 1000;
    static EASY_SEARCH_TOKEN_TTL_FALLBACK = 10 * 60;
    static EASY_SEARCH_DEFAULT_LOOKBACK = '2h';
    static EASY_SEARCH_DEFAULT_SIZE = 50;
    static EASY_SEARCH_MAX_SIZE = 500;
    static EASY_SEARCH_FOLLOW_INTERVAL_MS = 3 * 1000;

    /**
     * app-log 相关配置
     */
    static APP_LOG_ES_BASE_URL = 'http://10.73.11.160:30855';
    static APP_LOG_DEFAULT_INDEX = 'buzz-service-hk-uat-hspt';
    static APP_LOG_DEFAULT_PAGE_SIZE = 1000;
    static APP_LOG_MAX_PAGE_SIZE = 1000;
    static APP_LOG_LARGE_TOTAL_WARN = 10000;
}
